<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" />
		<link rel="stylesheet" href="css/Site.css" />
		<link rel="stylesheet" href="css/zy.all.css" />
		<link rel="stylesheet" href="css/font-awesome.min.css" />
		<link rel="stylesheet" href="css/amazeui.min.css" />
		<link rel="stylesheet" href="css/admin.css" />
	</head>

	<body>
		<div class="dvcontent">

			<div style="margin: 30px;">
				<input type="text" placeholder="输入移动电话" style="font-size: 25px;" />
				<input type="button" value="搜索" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			</div>

			<div>
				<!--tab start-->
				<div class="tabs">
					<div class="hd">
						<ul>
							<li class="on" style="box-sizing: initial;-webkit-box-sizing: initial;">权限审核</li>
						</ul>
					</div>
					<div class="bd">
						<table class="table" id="tbRecord">
							<thead>
								<tr>
									<th>编号</th>
									<th>姓名</th>
									<th>移动电话</th>
									<th>申请的权限</th>
									<th>状态</th>
									<th>修改</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>1</td>
									<td>张三</td>
									<td>17774605703</td>
									<td>代理商</td>
									<td>不可用</td>
									<td class="edit">
										<a href=""><button onclick="btn_edit(1)"><i class="icon-edit bigger-120"></i>通过</button></a>
										<a href=""><button onclick="btn_edit(1)"><i class="icon-edit bigger-120"></i>不通过</button></a>
									</td>
								</tr>
							</tbody>

						</table>

						<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
						<script src="js/plugs/Jqueryplugs.js" type="text/javascript"></script>
						<script src="js/_layout.js"></script>
						<script src="js/plugs/jquery.SuperSlide.source.js"></script>
						<script>
							var num = 1;
							$(function() {

								$(".tabs").slide({
									trigger: "click"
								});

							});

							var btn_save = function() {
								var pid = $("#RawMaterialsTypePageId  option:selected").val();
								var name = $("#RawMaterialsTypeName").val();
								var desc = $("#RawMaterialsTypeDescription").val();
								var ramark = $("#Ramark").val();
								$.ajax({
									type: "post",
									url: "/RawMaterialsType/AddRawMaterialsType",
									data: {
										name: name,
										pid: pid,
										desc: desc,
										ramark: ramark
									},
									success: function(data) {
										if(data > 0) {
											$.jq_Alert({
												message: "添加成功",
												btnOktext: "确认",
												dialogModal: true,
												btnOkClick: function() {
													//$("#RawMaterialsTypeName").val("");
													//$("#RawMaterialsTypeDescription").val("");
													//$("#Ramark").val("");                           
													//page1();
													location.reload();

												}
											});
										}
									}
								});
								alert(t);
							}

							var btn_edit = function(id) {
								$.jq_Panel({
									url: "/RawMaterialsType/EditRawMaterialsType?id=" + id,
									title: "编辑分类",
									dialogModal: true,
									iframeWidth: 500,
									iframeHeight: 400
								});
							}
							var btn_delete = function(id) {
								$.jq_Confirm({
									message: "您确定要删除吗?",
									btnOkClick: function() {
										$.ajax({
											type: "post",
											url: "/RawMaterialsType/DeleteRawMaterialsType",
											data: {
												id: id
											},
											success: function(data) {
												if(data > 0) {
													$.jq_Alert({
														message: "删除成功",
														btnOkClick: function() {
															page1();
														}
													});
												}
											}
										});
									}
								});
							}
						</script>

					</div>
	</body>

</html>